package com.jzo2o.orders.dispatch.test.strategys;

/**
 * 距离优先策略类：谁距离近谁优先，距离相同看接单数，谁接单数少谁优先
 *
 * @Author mr.wu
 * @Date 2024-12-29 11:21
 */
public class DistanceStrategy extends AbstractStrategyImpl{

    @Override
    public IProcessRule getRules() {
        IProcessRule acceptNumRule = new AcceptNumRule(null);
        IProcessRule distanceRule = new DistanceRule(acceptNumRule);
        return distanceRule;
    }
}
